package com.example.chenhaosblog.utils;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.Session;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.web.servlet.Cookie;

public class UtilsSession {
   public static  Subject currentUser = SecurityUtils.getSubject();

    public static   Session session = currentUser.getSession();
    public static void  setSession(String Ksy,Object o){
        session.setAttribute(Ksy,o);
    }

    public static  Object getSssion(String key){
        return session.getAttribute(key);
    }




}
